import request from '@/utils/request'

// 查询调研计划列表
export function listResearchPlan(query) {
  return request({
    url: '/business/researchPlan/list',
    method: 'get',
    params: query
  })
}

// 查询调研计划详细
export function getResearchPlan(id) {
  return request({
    url: '/business/researchPlan/' + id,
    method: 'get'
  })
}

// 新增调研计划
export function addResearchPlan(data) {
  return request({
    url: '/business/researchPlan',
    method: 'post',
    data: data
  })
}
//
export function syncDataServer() {
  return request({
    url: '/business/researchPlan/syncDataServer',
    method: 'post'
  })
}

// 修改调研计划
export function updateResearchPlan(data) {
  return request({
    url: '/business/researchPlan',
    method: 'put',
    data: data
  })
}

// 删除调研计划
export function delResearchPlan(id) {
  return request({
    url: '/business/researchPlan/' + id,
    method: 'delete'
  })
}

// 下拉调研计划列表
export function selectResearchPlan() {
  return request({
    url: '/business/researchPlan/select',
    method: 'get'
  })
}

// 下拉图层列表
export function selectDataServer() {
  return request({
    url: '/business/researchPlan/data/server/select',
    method: 'get'
  })
}


export function getTrajectory(query) {
  return request({
    url: '/business/researchPlan/trajectory',
    method: 'get',
    params: query
  })
}
